package com.cleaningcloud.cld.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cleaningcloud.cld.mapper.CldProjectPostWagesMapper;
import com.cleaningcloud.cld.domain.CldProjectPostWages;
import com.cleaningcloud.cld.service.ICldProjectPostWagesService;

/**
 * 项目岗位工资配置Service业务层处理
 * 
 * @author cleaningcloud
 * @date 2024-10-15
 */
@Service
public class CldProjectPostWagesServiceImpl implements ICldProjectPostWagesService 
{
    @Autowired
    private CldProjectPostWagesMapper cldProjectPostWagesMapper;

    /**
     * 查询项目岗位工资配置
     * 
     * @param projectPostWagesId 项目岗位工资配置主键
     * @return 项目岗位工资配置
     */
    @Override
    public CldProjectPostWages selectCldProjectPostWagesByProjectPostWagesId(Long projectPostWagesId)
    {
        return cldProjectPostWagesMapper.selectCldProjectPostWagesByProjectPostWagesId(projectPostWagesId);
    }

    /**
     * 查询项目岗位工资配置列表
     * 
     * @param cldProjectPostWages 项目岗位工资配置
     * @return 项目岗位工资配置
     */
    @Override
    public List<CldProjectPostWages> selectCldProjectPostWagesList(CldProjectPostWages cldProjectPostWages)
    {
        return cldProjectPostWagesMapper.selectCldProjectPostWagesList(cldProjectPostWages);
    }

    /**
     * 新增项目岗位工资配置
     * 
     * @param cldProjectPostWages 项目岗位工资配置
     * @return 结果
     */
    @Override
    public int insertCldProjectPostWages(CldProjectPostWages cldProjectPostWages)
    {
        return cldProjectPostWagesMapper.insertCldProjectPostWages(cldProjectPostWages);
    }

    /**
     * 修改项目岗位工资配置
     * 
     * @param cldProjectPostWages 项目岗位工资配置
     * @return 结果
     */
    @Override
    public int updateCldProjectPostWages(CldProjectPostWages cldProjectPostWages)
    {
        return cldProjectPostWagesMapper.updateCldProjectPostWages(cldProjectPostWages);
    }

    /**
     * 批量删除项目岗位工资配置
     * 
     * @param projectPostWagesIds 需要删除的项目岗位工资配置主键
     * @return 结果
     */
    @Override
    public int deleteCldProjectPostWagesByProjectPostWagesIds(Long[] projectPostWagesIds)
    {
        return cldProjectPostWagesMapper.deleteCldProjectPostWagesByProjectPostWagesIds(projectPostWagesIds);
    }

    /**
     * 删除项目岗位工资配置信息
     * 
     * @param projectPostWagesId 项目岗位工资配置主键
     * @return 结果
     */
    @Override
    public int deleteCldProjectPostWagesByProjectPostWagesId(Long projectPostWagesId)
    {
        return cldProjectPostWagesMapper.deleteCldProjectPostWagesByProjectPostWagesId(projectPostWagesId);
    }
}
